package com.liutaw.nanjingair.views.fragments;

import android.content.Context;

import com.szjlxh.domain.model.SunInfo;
import com.szjlxh.domain.model.index.WeatherBaseData;
import com.szjlxh.domain.model.index.WeatherHourData;
import com.szjlxh.domain.model.index.WeatherSevenDay;

import java.util.List;

/**
 * Created by liutao on 16/2/29.
 */
public interface IIndexFragment {
    void onRefreshData();

    void onDestory();

    //七天天气
    void onSevenDayWeatherDataLoaded(List<WeatherSevenDay> weatherSevenDay);

    void onSenvenDayWeatherDataLoadedFailed(String message);

    //未来24小时
    void onFuture24HoursWeatherDataLoaded(List<WeatherHourData> hoursWeatherBean);

    void onFuture24HoursWeatherDataLoadedFailed(String message);

    //过去24小时
    void onLast24HoursWeatherDataLoaded(List<WeatherHourData> hoursWeatherBean);

    void onLast24HoursWeatherDataLoadedFailed(String message);

    //日出日落时间
    void onSunDataLoaded(SunInfo sunInfo);

    void onSunDataFailed(SunInfo sunInfo);

    //基础天气信息
    void onWeatherBaseLoaded(WeatherBaseData baseData);

    void onWeatherBaseLOadedFailed(String message);

    void onStationLoaded(String statinName);

    void onStationLoadedFailed();

    Context getContextInstance();
}
